////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   CompositeIterator.java
// AUTHOR           :   ric.yik
// DATE CREATE      :   2006/5/10
// DESCRIPTION      :   
//                  :   
//                  :   
//                  :   
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/5/10      ric.yik         1.0                 source is created.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.common.util;

import java.util.Iterator;

public class CompositeIterator extends BaseIterator {

    private Iterator component;

    public CompositeIterator(Iterator component) {
        super();
        this.component = component;
    }

    protected Iterator getComponent() {
        return component;
    }

    protected void setComponent(Iterator component) {
        this.component = component;
    }

    public boolean hasNext() {
        return component.hasNext();
    }

    public Object next() {
        return component.next();
    }

    public void remove() {
        component.remove();
    }

}
